from getInput import *
from story import *

def menu(debug = False):
	if debug:
		print "Welcome to Madlibs Debug"
	swearFiltering = True
	selection = ""
	while selection != "exit":
		print "***********Madlibs***********"
		print "* 1) Opening                *"
		print "* 2) News Report            *"
		print "* 3) World War              *"
		print "* exit                      *"
		print "* ------------------------- *"
		print "* Please type a selection   *"
		selection = getMenuOption(debug)
		print "*****************************"
		 
		if selection == "1":
			story1(swearFiltering, debug)
		if selection == "2":
			story2(swearFiltering, debug)
		if selection == "3":
			story3(swearFiltering, debug)
		if selection == "swearfiltertoggle":
			if swearFiltering:
				swearFiltering = False
				print "please don't abuse this function"	
			else:
				swearFiltering = True
				print "It seems you are more mature than I thought!"
menu(False)






